// 云函数：新增债务
const db = wx.cloud.database()
exports.main = async (event) => {
  const { debtData } = event
  return await db.collection('debts').add({ data: debtData })
}